package com.cxy.jvm.ch02;

/**
 * 对象优先在Eden分配
 * -Xms20m -Xmx20m  -Xmn10m -XX:+PrintGCDetails
 */
public class EdenAllocation {
    private static final int _1MB =1024*1024; //1M的大小
    // * 对象优先在Eden分配
    public static void main(String[] args) {
        byte[] b1,b2,b3,b4;
        b1 = new byte[1*_1MB];
        b2 = new byte[1*_1MB];
        b3 = new byte[1*_1MB];
        b4 = new byte[1*_1MB];

    }

}
